import {  get,post } from "../../utils/request"
import { addtype } from "./type"
//图片列表
export const advertisementlist = (data:any) =>{
    return get('advertisement/list',data)
}
//图片位置
export const adtypelist = () =>{
    return get('adtype/list',{psize:100})
}

export const advertisementadd = (data:addtype) =>{
    return post('advertisement/add',data)
}


export const advertisementget = (id:number) =>{
    return get('advertisement/get',{id:id})
}